package com.example.zk2_lx;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.blankj.utilcode.util.SPUtils;
import com.blankj.utilcode.util.ToastUtils;

public class LoginActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
    }

    public void login(View view) {
        ToastUtils.showLong("登录成功");
        SPUtils.getInstance().put("token","eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhdXRoMCIsImV4cCI6MTcyMjg0NDg0NSwidXNlcm5hbWUiOiIxMjMifQ.3zSFZHnS3zSa-Cs5wYAYetJzg-xtbpagjvmJUZ5qjsM");
        startActivity(new Intent(this,MainActivity.class));
    }
}